<?php

namespace app\admin\model;

use think\Model as Base;
use think\db\Query;
class Model extends Base
{
    const PK = "id";

    function getIdAttr()
    {
        return $this->getData(static::PK);
    }

    /**
     * @return  Query
     */
    static function getQuery()
    {
        return app(static::class)->db();
    }
}